package com.alit.monitor.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.alit.monitor.service.DetectionUrlService;

/**
 * @author litong
 * @date 2019年4月15日_下午7:00:00
 * @version 1.0
 */
@RestController
@RequestMapping("/api/url")
public class ApiController {

	@Autowired
	private DetectionUrlService detectionUrlService;

	@RequestMapping("detection")
	public int detection(String url) {
		int retval = detectionUrlService.detectionURL(url);
		return retval;
	}
}
